package cn.hackcloud.javabase.reflect;

@MyAnnotation(value = "laijun")
public class Person extends Creature<String> implements Comparable<Object>, MyInterface {
	private static final long serialVersionUID = 1L;
	public String name;
	private int age;
	int id;

	public Person() {
		super();
	}

	public Person(String name, int age) {
		super();
		this.name = name;
		this.age = age;
	}

	@Override
	public int compareTo(Object o) {
		return 0;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	@MyAnnotation(value = "laijun2")
	public void show() {
		System.err.println("我是一个人");
	}

	private void display(String nation) throws Exception {
		System.err.println("我的国籍 是:" + nation);
	}

	@Override
	public String toString() {
		return "Person [name=" + name + ", age=" + age + ", id=" + id + "]";
	}

	class bird {
		
	}
}
